﻿; 转换为带%%变量的相对路径
iRelativePath(file){
	;file := RegExReplace(file,"i)" ToMatch(A_ScriptDir "\Config"),"%CONFIG%")
	;file := RegExReplace(file,"i)" ToMatch(A_ScriptDir "\Script"),"%SCRIPT%")
	file := RegExReplace(file,"i)" ToMatch(A_ScriptDir "\Plugin"),"%PLUGIN%")
	file := RegExReplace(file,"i)" ToMatch(A_ScriptDir "\Icons"),"%ICONS%")
	file := RegExReplace(file,"i)" ToMatch(A_ScriptDir "\Apps"),"%APPS%")
	file := RegExReplace(file,"i)" ToMatch(A_ScriptDir),"%A_SCRIPTDIR%")
	file := RegExReplace(file,"i)" ToMatch(A_WinDir),"%A_WINDIR%")
	return file
}
